<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>slot使用</title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<child>
				<div>这是第一个</div>
				<div>这是第二个</div>
				<div>这是第三个</div>
			</child>
		</div>
		<script type="text/javascript">
			Vue.component("child", {
				template: `
			        <div>
			            <slot></slot> 
			            -----分界线-----
			            <slot></slot>
			        </div>  
			         `
			})
			var vm = new Vue({
				el: "#app",
				data: {}
			})
		</script>
	</body>
</html>
